package com.zlc.common.common.constant;

import com.zlc.common.annotation.Parameter;
import com.zlc.common.annotation.SyncParameterConstant;

/**
 * 系统参数
 */
@SyncParameterConstant
public class SysParameterConstant {

    @Parameter(defaultValue = "5",type = ParameterType.INTEGER,catalog = "系统-登录", desc = "登录失败最多次数,触发最大次数后锁定账号",sortNum = 0)
    public static final String LOGIN_FAIL_MAX_TOTAL = "LOGIN_ERROR_MAX_TOTAL";

    @Parameter(defaultValue = "true",type = ParameterType.BOOLEAN,catalog = "系统-登录", desc = "登录失败是否走验证码逻辑",sortNum = 2)
    public static final String LOGIN_FAIL_CHECK_CODE_FLAG = "LOGIN_FAIL_CHECK_CODE_FLAG";

    @Parameter(defaultValue = "30",type = ParameterType.INTEGER,catalog = "系统-登录", desc = "用户账号锁定后自动解锁时间（分钟)",sortNum = 3)
    public static final String USER_PASSWORD_UNLOCK_INTERVAL = "USER_PASSWORD_UNLOCK_INTERVAL";

    @Parameter(defaultValue = "144",type = ParameterType.INTEGER,catalog = "系统-登录", desc = "用户登录非活动会话最大保持时间（小时）",sortNum = 4)
    public static final String USER_SESSION_MAX_INACTIVE = "USER_SESSION_MAX_INACTIVE";

    @Parameter(defaultValue = "30",type = ParameterType.INTEGER,catalog = "系统-登录", desc = "用户账号密码有效期（天）",sortNum = 5)
    public static final String USER_PASSWORD_UPDATE_CYCLE = "USER_PASSWORD_UPDATE_CYCLE";

    @Parameter(defaultValue = "true",type = ParameterType.BOOLEAN,catalog = "系统-登录", desc = "是否允许账号多地登录",sortNum = 6)
    public static final String USER_LOGIN_MORE_PEOPLE = "USER_LOGIN_MORE_PEOPLE";

    @Parameter(defaultValue = "123456",type = ParameterType.STRING,catalog = "系统-账户", desc = "重置默认密码",sortNum = 1)
    public static final String USER_RESET_PASSWORD_VALUE = "USER_RESET_PASSWORD_VALUE";
}
